import request from '@/utils/request'

// 注册接口
export const register = (data) => {
  return request.post('/user/registered', data)
}

// 登录
export const login = (data) => {
  return request.post('/user/login', data)
}

// 用户信息
export const getUserInfo = () => {
  return request.get('/user')
}

// 更新用户的数据
export const changeUserInfo = () => {
  return request.patch('/user')
}
